Ext.define('BM.model.User', {
    extend: 'Ext.data.Model',
    fields: ['id', 'userName','gender','password','cid','mail','status','memo'],
    validations: [
        {type: 'inclusion', name: 'gender',   list: ['male', 'female']},
        {type: 'inclusion', name: 'status',   list: ['0','1']},
        {type: 'exclusion', name: 'userName', list: ['admin']}
    ]
});